const dashboardData =
    // progress: [
    //     {
    //         name: '门店任务进度',
    //         result: [
    //             { name: '总进度', progress: 40 },
    //             { name: '平均进度', progress: 69 },
    //             { name: '完成进度', progress: 20 }
    //         ]
    //     },
    // {
    //     name: '店员任务进度',
    //     result: [
    //         { name: '总进度', progress: 40 },
    //         { name: '平均进度', progress: 69 },
    //         { name: '完成进度', progress: 20 }
    //     ]
    // }
    // ],
    // bar: 
    [
        {
            name: '前6个小时客流量',
            result: [
                { visits: 19, date: '2017-04 12:00' },
                { visits: 99, date: '2017-05 13:00' },
                { visits: 29, date: '2017-06 14:00' },
                { visits: 59, date: '2017-07 15:00' },
                { visits: 39, date: '2017-08 16:00' },
                { visits: 39, date: '2017-09 17:00' },
            ]
        },
        // 进度条的图表数据
        // {
        //     name: '店员任务进度',
        //     results: [
        //         { name: '总进度', progress: 40 },
        //         { name: '平均进度', progress: 69 },
        //         { name: '完成进度', progress: 20 }
        //     ]
        // }
    ]
    ;


// VIP 和 普通客户占比数据
const ratioData = [
    { name: 'VIP客户', number: 300 },
    { name: '普通客户', number: 500 },

]


const timeMap = {
    // hour: '最近六小时',
    week: '最近一周',
    month: '最近一个月',
    halfYear: '最近半年'
}


const traffic = [
    {
        index: 0,
        name: '最近七天客流量',
        keyIndex: 0,
        data: []
    }, {
        index: 2,
        name: 'VIP客户和普通客户占比',
        keyIndex: 0,
        data: []
    }, {
        index: 2,
        name: '顾客性别占比',
        keyIndex: 1,
        data: []
    }, {
        index: 1,
        name: '顾客各年龄段数量',
        keyIndex: 1,
        data: []
    }, {
        index: 3,
        name: '最近七天客流量环比',
        keyIndex: 2,
        data: []
    }, {
        index: 0,
        name: 'VIP客户增加对比图',
        keyIndex: 3,
        balloon: true,
        data: []
    }, {
        index: 0,
        name: '客流量与销售额对比图',
        keyIndex: 4,
        balloon: true,
        data: []
    }, {
        index: 0,
        name: 'VIP数量与销售额对比图',
        keyIndex: 5,
        balloon: true,
        data: []
    },
];


const trafficOptionsList = [
    {
        height: 380,
        ballonType: '人',
        categoryField: 'date',
        rotateAngle: 0,
        marginLeft: 60,
        download: 'traffic',
        keyMap: {
            count: '客流量'
        }
    }, {
        height: 380,
        ballonType: '人',
        categoryField: 'ageGroup',
        rotateAngle: 0,
        marginLeft: 60,
        download: 'age',
        keyMap: {
            count: '人数'
        }
    }, {
        height: 380,
        ballonType: '人',
        categoryField: 'date',
        rotateAngle: 0,
        download: 'sequential',
        keyMap: {
            current: '最近七天客流量',
            before: '环比七天客流量'
        }
    }, {
        height: 380,
        ballonType: '人',
        categoryField: 'date',
        rotateAngle: 0,
        clustered: false,
        stackType: "regular",
        balloon: true,
        download: 'vipIncrease',
        keyMap: {
            totalVipCount: '总VIP客户数量',
            vipCount: '新增VIP客户数量',
        }
    }, {
        height: 380,
        categoryField: 'date',
        legend: true,
        balloonType: { amount: '元', count: '人' },
        rotateAngle: 0,
        download: 'amountAndCount',
        balloon: true,
        bullet: { amount: "round" },
        lineThickness: { amount: 1 },
        type: { amount: true },
        valueAxes: { amount: { position: "left", id: "v1" }, count: { position: "right", id: "v2" } },
        gridAlpha: { amount: 0.1, count: 0 },
        keyMap: {
            count: '客流量',
            amount: '销售额',
        }
    }, {
        height: 380,
        categoryField: 'date',
        legend: true,
        balloonType: { amount: '元', vipCount: '人' },
        rotateAngle: 0,
        download: 'vipAmountAndCount',
        balloon: true,
        bullet: { amount: "round" },
        lineThickness: { amount: 1 },
        type: { amount: true },
        valueAxes: { amount: { position: "left", id: "v1" }, vipCount: { position: "right", id: "v2" } },
        gridAlpha: { amount: 0.1, count: 0 },
        keyMap: {
            vipCount: 'VIP增长量',
            amount: '销售额',
        }
    },

]


// 销售报表模拟数据
const sales = [
    {
        index: 0,
        name: '近一周销售额',
        keyIndex: 0,
        download: 'amount',
        data: [

        ]
    },
    {
        index: 0,
        name: '近一周连带率',
        keyIndex: 1,
        download: 'rate',
        data: [

        ]
    },
    {
        index: 0,
        name: '近一周客单价',
        keyIndex: 2,
        download: 'price',
        data: [

        ]
    },
    {
        index: 2,
        name: '近一周成交率',
        keyIndex: 3,
        download: 'complete',
        data: [

        ]
    },
    {
        index: 0,
        name: '近一周成交单数',
        keyIndex: 4,
        download: 'count',
        data: [

        ]
    },
    {
        // 列表数据
        index: 3,
        name: '顾客购买力TOP5',
        data: []
    }
]


// 销售任务报表装置图的options
const keyMapList = [
    {
        height: 230,
        marginLeft: 60,
        ballonType: '元',
        categoryField: 'date',
        rotateAngle: 0,
        balloon: true,
        download: 'amount',
        keyMap: {
            totalamount: '销售额'
        }
    }, {
        height: 230,
        // ballonType: '%',
        categoryField: 'date',
        rotateAngle: 0,
        balloon: true,
        download: 'rate',
        keyMap: {
            jointrate: '连带率'
        }
    }, {
        height: 230,
        ballonType: '元',
        categoryField: 'date',
        rotateAngle: 0,
        balloon: true,
        download: 'price',
        keyMap: {
            guestprice: '客单价'
        }
    }, {
        height: 230,
        ballonType: '%',
        categoryField: 'date',
        rotateAngle: 0,
        balloon: true,
        download: 'complete',
        keyMap: {
            ratio: '成交率'
        }
    }, {
        height: 230,
        rotate: true,
        ballonType: '单',
        categoryField: 'date',
        rotateAngle: 0,
        balloon: true,
        download: 'count',
        keyMap: {
            count: '成交单数'
        }
    }

]


const pieOptionsMap = [
    {
        height: "380px",
        download: 'total',
        keyMap: {
            name: '名称',
            count: '数量'
        },
    },
    {
        height: "380px",
        download: 'gender',
        keyMap: {
            name: '名称',
            count: '数量'
        },
    },

];

const taskItems = [
    {
        index: 3,
        name: '销售任务完成进度',
        data: [

        ]
    }
]


// TOP5表头
const listTh = [
    { name: '顾客姓名', width: '150px' },
    { name: '订单金额', width: '150px' },
    { name: '件数', width: '150px' },
    { name: '交易时间', width: '150px' }
]

const listData = {
    index: 3,
    data: [
        { customerName: '马云', amount: 5999, count: 5, time: '2017-10-01' },
        { customerName: '雷军', amount: 5899, count: 5, time: '2017-10-03' },
        { customerName: '马化腾', amount: 5699, count: 5, time: '2017-10-05' },
        { customerName: '任正非', amount: 4999, count: 5, time: '2017-09-023' },
        { customerName: '李彦宏', amount: 4899, count: 4, time: '2017-10-17' },
    ]
}


export default {
    dashboardData,
    ratioData,
    timeMap,
    traffic,
    sales,
    keyMapList,
    taskItems,
    trafficOptionsList,
    listTh,
    listData,
    pieOptionsMap

}
